Fixed issue where templates could not get loaded if software is runned in as service

Signed-off-by: Thomas Spycher <tspycher@zerodine.com>