Linux - move apihooks check into overlay