Patches file handling to use absolute paths.

We ran in to an issue when we had Ruby packaged in a JAR file under JRuby where files weren't expanded all the way. It's been a little while since I applied the patch, so I don't remember the specifics, but this files like The Right Thing To Do(TM) anyway.