create folder only if path is not empty