Fixed file_roots config generation with several environment

Actual formula works incorrectly with file_roots in case, when you have several environment.
Here is fix for the problem