Fix a typo in deployer session termination code
Check for application version before deploying