regman: Try to deduce the path to the executable