Backport from master: Fix determination of where to store LXC templates on the buildbot