Deployedsha1file config is ignored

At line 296 DEPLOYED_SHA1_FILE is declared before the scope, so it will ever get default value.