Change generate-persistent-dir-name to use home dir on Linux