Build dependency if the version reference is missing