Chef does this for you already Signed-off-by: Tim Smith <tsmith@chef.io> (cherry picked from commit 73ef17e2)