Use an absolute path to the CakePHP libs.

--- cakephp-cakephp1x-3bb7793.orig/cake/console/cake	2010-05-19 23:58:47.000000000 +0100
+++ cakephp-cakephp1x-3bb7793/cake/console/cake	2010-05-19 23:59:24.000000000 +0100
@@ -18,7 +18,7 @@
 # @license			MIT License (http://www.opensource.org/licenses/mit-license.php)
 #
 ################################################################################
-LIB=${0/%cake/}
+LIB=/usr/share/php/cake/console/
 APP=`pwd`
 
 exec php -q ${LIB}cake.php -working "${APP}" "$@"
 
