Fix ag executable check for alias