fix for external programs with spaces in path