os.getlogin() fails when cleanslate runs as a background process.