Andy,
It will work going to the engine, but running to the common battery ground is better.
The use of the frame as ground works, but is done to save on wiring by the manufacturer.
Running separate grounds to a common ground bus is "best practice", but seldom done.
Best of luck,
Cliff