updated for Ruby >= 1.9 and HandBrakeCLI >= 0.9.9 (not great but working)