replace Open3 with systemu
added exception class
patches for using activerecord 3.2.5