bash shell script check if directory exists