Fix erroneous trailing empty dependency

Similar to PR #224 of opm-core