Extract executable detection.

See #224.