separated canonicalizeDirPath from initAO_PATH