Corrections to the relative routes patching
Minor changes to initd and nginx files, and move their generation to the global deployment phase