Made . use pwd instead of resolving to cwd.