Replace shell scripts with Ruby
Command line arguments with $ characters need to be quoted.