Fixed missing pkg variable in ressource template