tweak template to handle symbolic links

address #19