<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -8,20 +8,21 @@ require 'rubygems'
 WAVES = &quot;#{File.dirname(__FILE__)}/..&quot; unless defined? WAVES
 
 waves = [
-    WAVES, ENV['WAVES'], './waves'
-].compact.map { |dir| File.join(dir, 'lib') }.find( &amp;File.method( :directory? ) )
+  WAVES, ENV['WAVES'], './waves'
+].compact.map { |dir| File.join(dir, 'lib') }.find { |d|
+  File.exist? File.join( d, 'waves.rb' )
+}
 if waves
-    $: &lt;&lt; waves
-    waves = File.join( waves, 'waves' )
+  $: &lt;&lt; waves
+  waves = File.join( waves, 'waves' )
 else
-    waves = 'waves'
+  waves = 'waves'
 end
-require waves
 
+require waves
 
 puts &quot;** Waves #{Waves.version} **&quot;
 
-
 begin
   require &quot;commands/#{ARGV.first}&quot;
 rescue LoadError =&gt; e</diff>
      <filename>bin/waves</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>6176d0fc295513d7e1365f5a98a5ff39750abc51</id>
    </parent>
  </parents>
  <author>
    <name>Pete Elmore</name>
    <email>pelmore@yellowpages.com</email>
  </author>
  <url>http://github.com/dyoder/waves/commit/ee5a6849b0887a18efd5365dbc396437cc15404d</url>
  <id>ee5a6849b0887a18efd5365dbc396437cc15404d</id>
  <committed-date>2008-11-06T21:28:53-08:00</committed-date>
  <authored-date>2008-11-06T21:28:53-08:00</authored-date>
  <message>Fixing the load path.</message>
  <tree>70e9a3752094a9a30941ef1a1045cdcc1c6d7c6d</tree>
  <committer>
    <name>Pete Elmore</name>
    <email>pelmore@yellowpages.com</email>
  </committer>
</commit>
