Fixes packageDir property of template objects

Fixes #1593