Ensure directory exists.