Harden the `bin/cake` script to avoid breakage when local shell environment has a `CDPATH` set.
Merge pull request #3530 from beporter/feature/bin-cake-cdpath-fix

Harden the `cake` script to avoid `CDPATH` breakage.