Updating Rakefile in order to handle local static pages generation case.