Transversality Condition for a Free Terminal Endpoint on an Embedded Submanifold