fixed 'cwd' command