Fixed directory creation for resources