Update pm2.rb

Fixes to work with Ubuntu