Guess project dir

Most of the plugins use -s to set the project base directory. With this change, if -s is not supplied it tries to find the base project directory, starting with the current working directory and going up one level if that fails, up to '/'.

With this you can simply run "cocos2d <action>" within any directory inside the project.