Fix: entries with space on PATH would break

If you have any entries on your path with space, the old version would break those entries into several ones. This PR fixes that issue.