Fixed some minor issues in mage scripts.
Fixed error if PHPUnit-Test directory does not exist.
Fixed no more available option for phpcpd.