Mock directory creation during unit tests