Adapted PsN setup script to facilitate scripted installation