configure: Fix for whitespace in path

May fix #10170.