fix spaces-in-path bug in extension builds