Better support for .require . etc.

Will use the realpath of paths made up of just dots and slashes
so that a name is included that's better