Replaces pwd with getpass.getuser so it is cross platform