The os-cmd script tests for available commands in a non-portable cross-platform way. This fix replaces it with something much more portable. Change-Id: I65e76f7991d03ae2234030ab1e3fb02865b81c32 Closes-Bug: #1713460