Fix check_program_path IFS issue