Fix beagrep for when there is space in the path.