Source
--- msfd 2007-03-25 16:45:19.000000000 -0700
+++ msfd 2007-05-29 14:57:01.000000000 -0700
@@ -6,7 +6,7 @@
# possible for sessions to to be shared from a single vantage point.
#
-msfbase = File.symlink?(__FILE__) ? File.readlink(__FILE__) : __FILE__
+msfbase = File.symlink?(__FILE__) ? File.join(File.expand_path(File.dirname(File.readlink(__FILE__)), File.dirname(__FILE__)), File.basename(__FILE__)) : __FILE__
$:.unshift(File.join(File.dirname(msfbase), 'lib'))
require 'msf/base'