shell script check if file exists and not empty