Fix check for external dependencies