Use single quotes
On windows use nul rather than /dev/null
Extract a command variable
Nil status to start with
Initialize variables
Attempt to re-add windows and jruby support