Fix environment set up for nightlies use case

Merged Marco Clemencic requested to merge fixes-for-nightlies into master

Recent changes in the nightly builds broke the assumptions required by LHCbIntegrationTests.

This MR introduces a different handling of the environment of projects when we are in a nightly build context.

Merge request reports