chef is passing a crazy environment to this bash script