Support Berkshelf v3 in addition to v2

By executing some Ruby code that runs the correct Berkshelf method
depending on the version.