linux shell script test if directory exists