fix check for existence of executable