Accept recursive flag when creating directories