Change os.getenv('~')) to os.path.expanduser('~') because is multiplatform