bacula: fix var scoping

Change-Id: I8c4539e1e0788496d4b21c029db3d405073e1309
Merge "bacula: fix var scoping" into production