Fix extension handling for relative paths.

If the path or the filename started with a ".", then it treated
the whole string as one long extension ("./core/test") instead
of realizing there's no extension.
Add current directory to load path.