(fix) check for ? in provided path before appending it

fixes failing test