Fixes to application deploy recipe, and to master init script.