added import for IOException
rearranging Rakefile some more