Fixes truncation of paths containing spaces