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.