attempt to fix undefined method `dirname' for Chef::Provider::File:Class