Takes a list of shell commands and returns the first available.