Fix for missing $cmd on unix-type systems.