shell script if file exists and is not empty