Smarter version checking dependency

Fix #78