check for existing dir