fix new/old hashsyntax commands
remove blank lines at the end of file