build: improved dependency checking