Fix 'configure', and wrappers for 'find' and 'sort'