Improve run-ci's change detection

Ensure that the prefix matches the directory. Using the
entire string results in things like 'php' being run when only
'cakephp' was modified