Implemented new sanitizeFilePath method in addPath