Write out directive as first line of script file
Removing leading spaces from script block