Ensuring executable command is not only executable as per Ruby's File class but also an actual file (and not a directory)