Added function to test if a command exists. Since which does not return an exit code use our command_exists function in vmm.func instead.