Don't be a login shell; Don't want to pull in profile over top of what user may have.
dunit version is not 1.2.1.
Use consistent command substitution.
Pull in configuration *after* configuration path is set via the option.
composer install doesn't need to produce a defaults file, so don't add the unnessary side-effect.