Fetch module names from load path for autocomplete

@josevalim @ericmj I still thinking about how to cache this properly. Any ideas?

#2920
Oops, this will set modules to nil if not in interactive mode.