Support ruby < 2.1 by removing use of __dir__