fix ~ on linux