correct coverage for overridden TEST_COMMAND

when it is an executable script then look up the path to it