Fix for ubuntu 12 (su) and formatting fix rule.erb