Let the developer define installed via composer

The latest changes broke my installation, mainly because it's not able to correctly identify if it was installed via composer. So this fix let the development define the constant before this script is triggered.
Merge pull request #1197 from andersonamuller/patch-2

Let the developer define installed via composer