Protection for non existing directory