diff --git a/Rakefile b/Rakefile
index <HASH>..<HASH> 100755
--- a/Rakefile
+++ b/Rakefile
@@ -1,13 +1,14 @@
-#!/usr/bin/env ruby
+#!/usr/bin/env ruby -KU
+
 require 'pathname'
 require 'rubygems'
 require 'rake'
 require 'rake/rdoctask'
 
-require 'lib/dm-core/version'
-
 ROOT = Pathname(__FILE__).dirname.expand_path
 
+require ROOT + 'lib/dm-core/version'
+
 AUTHOR           = 'Dan Kubb'
 EMAIL            = 'dan.kubb@gmail.com'
 GEM_NAME         = 'dm-core'
diff --git a/script/performance.rb b/script/performance.rb
index <HASH>..<HASH> 100755
--- a/script/performance.rb
+++ b/script/performance.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/env ruby
+#!/usr/bin/env ruby -KU
 
 require 'ftools'
 require 'rubygems'
diff --git a/script/profile.rb b/script/profile.rb
index <HASH>..<HASH> 100755
--- a/script/profile.rb
+++ b/script/profile.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/env ruby
+#!/usr/bin/env ruby -KU
 
 require 'ftools'
 require 'rubygems'
Minor code update to Rakefile require and ruby command line in scripts