title: Accessing files in the same directory as script
body: <p>I need to access files that are relative to the location of my Ruby script.</p>
  
  <p>The only solution I've found is using <code>File.dirname(__FILE__)</code>, however, if the script is run from a symlink, <code>__FILE__</code> gives the location of the symlink.</p>
  
  <p>I would prefer a solution that does not involve looking at <code>__FILE__</code>, checking if it's a link, if it is, finding out where it points to. But, if there is no other way, it would be nice to know if there is already a gem to do this?</p>