fix relative path problem when loaded from delayed_job