fixing missing quotes in script if expression