command check from -z to -x, and add double quotes

'-x' checks if the file exists && executable
to check string length by '-z' you need double quote