apache: patch code to handle directories creation