Fix a bug running post-install.sh and starting services with pbi-manager