fixed spaces in the if command in shell script