Fix for #411 using solution from https://github.com/rodjek/librarian-puppet/issues/198.