compatible with chef version < 11

making code compatible with chef version lower than 11, to make this package work with vagrant and its default box running chef 10.14.2
im not sure if this breaks the functionality, but with this change im able to successfully use this cookbook. however im not interacting with repositories in any way.