Fixed distro find logic to return non -1 exit status in test statement.