Bugfix for invalid check of deployment flag file