fix issue with fork and confpath on different distributions
fix @vars in templates