Fixed issues with variable lookup, should work with Foreman now