Fixed pth to deal with output directory properly.

More updates to skel template.