change ./ to File.dirname(__FILE__)

__dir__ didn't work(I don't know why), and also for compatibility.