Move _checkCommand to cpymad.model

This function is only useful for this module. No need to keep it in a
separate location.