build: fix support for whitespace in space paths