Added long path trimming option to avoid long path issues in Windows