fixed syntax error with bash if - needs a space after if