minor bug fix in path setup