extension cutting didn't work properly on paths containing periods