Fixed directory creation.