Improved check for `-P:minibox:two-way`