Fix paths relative to current directory

Names for modules on a path relative to the parent directory were created correctly, but not paths relative to the current directory.