Make locating dot executable more robust.
Optimize fx->fl when safe.