JRuby

File.dirname(__FILE__) doesn't return correct value when a script is loaded from classpath