While testing #1447, I found that tab completing import fo<TAB> when foo.py is in the current directory wasn't working. There's a mismatch between the representation of the cwd in sys.path (as '') and that required for isdir and listdir ('.').
Fix completion when importing modules in the cwd.
If merging this won't conflict with #1447, go for it.
Shouldn't do. Merging this now.