Issue 1216 with unit test

Correction of #1216: Now the bootstrap file has environement variables even when the file is set as argument