commands: Quotes arround ${work_script}
Bugfixes and Debug output
commands: Throw an error in the script when platform config dir is not set
commands: Do build replace funcs after write all the initrc script