Rakefile fixes.
Version bump to 1.3.1