The problem is that bake uses the php command interpreter using the default /bin path.
You fix that by pre-adding the right path to the the $PATH environment variable :
export PATH=/Applications/MAMP/bin/php5/bin/:$PATH
Place this line in your .profile to always call the MAMP php interpreter instead of the one supplied by Apple.
