Create the .scout dir prior to template block

I also had to change the way the homedir was referenced in the template block.