Fixed an undefined method error in linux recipe

moved the library call outside of the calling resource block. It caused an "undefined method" error. 

The bug is similar to this: http://le-huy.blogspot.com/2011/05/chef-different-between-method-defined.html