Ensure classes directory exists