Fixed if statements by switching to bash shell