linux shell script check if directory exists