Fix warning in directory creation