shell script check if file pattern exists