Set CDPATH and fix ENV variable loading.