[jenkins] - refactor jenkins scripts to centralise the decision for

rebuilding depends - add project/cmake dir as criterion.

This ensures that jenkins rebuilds depends whenever project/cmake dir changes (for getting binary addons rebuilt).

see http://forum.kodi.tv/showthread.php?tid=208885&pid=1840594#pid1840594