You need to move `$env_file` outside or it will not be passed if the second parameter is given.