Guard against exported `CDPATH` (fixes #316)