What about ```require File.expand_path('../pacemaker/resource/primitive',  __FILE__)```, that's quite often used on ruby.