Fixed up deploy.sh and PN scripts