Detect missing modules when building from source