cakephp: Fix incorrect locations for cakephp plugin

Ref: cakephp/cakephp#3758
cakephp: Map dev-master to 2.x for backward compatibility purpose