if syntax fix for bash