Added conditional stat to cake plugin to work cross-platform

Autocomplete for cake plugin didn't work on my Ubuntu 10.04. This request fixes that