normalise indentation
properly quote all file and path variables
No newline after shebang in bash scripts
Fix: support for always restart had disappear
normalised newlines in file headers
use double brackets for bash conditionals