normalised newlines in file headers
normalise indentation
properly quote all file and path variables
use double brackets for bash conditionals