Improve extension compatibility check