Make sure the init file is only loaded from the template directory and only if it exists