Add utility function for executable checking