Script to start foreman only if available

Updated the upgrade script to start foreman only if its available.