Add configuration hooks to rakefile