fix: dir exists error handling