Resolve paths properly if space in path