fixed getting cwd