Modify environment before calling Ruby