Suppress shell warnings when hashing is disabled by `set +h`
Guard against exported `CDPATH` (fixes #316)