fix hard coding in templates
fixing rootDirectory path to be set by capo. fixing tmp directory path to use rootDirectory and not be hard coded
fixing rootDirectory path to be set by capo. fixing tmp directory path to use rootDirectory and not be hard coded