Quote path in case of spaces

Fixes #2021