added quotation for safety checks in bash script