Ensure path added to $: is canonical

Swaps File.dirname(__FILE__) with File.expand_path('..', __FILE__).

Change-Id: I627bbc2270becc100bdb93478054cb1f758a4074