fix for when running autopatcher with a space in path