Updated template
Tidied up file pathing for generation of nifs.