Fix provided relative paths to the config file
Fix provided relative paths to the config file

We do an expand_path on the passed config value and we use Dir.pwd with the expand, but before we ever get here we change the directory to /, which means specifying a file in the working directory results in something like /client.rb. This isn't what the user wants. Instead change the working directory right before we run the application instead of before we work out the config situation.

Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>

chef/ohai,higanworks/ohai,jaymzh/ohai,mattray/ohai,mattray/ohai,higanworks/ohai,jaymzh/ohai,chef/ohai