check to see if file/directory exists