- again fix scripts to work in a constrained environment (as tested
  on a QNAP NAS).

    'readline' has been replaced
    complex 'find's have been replaeced with 'ls' and filters

- added a getCanonicalDir function to common.lib to provide a utility
  to replace 'readline'