rubocop fix

Some small fixes for ruby best practices.
Nice. Didn't know about `$PROGRAM_NAME`.