Try to save exec's during scan phase.
dash
Optimise dirname.