Make PROG a bit more flexible

Support prognames which are a bit more flexible such as ansible's "ansible-<stdin>"