- fixed bug in getCanonicalDir (missed dereference of bash variable)