Corrected path joining to use 'pathTool'