Change dofiles to require

Changed the dofile to require for compatibility reasons (require is more robust to searching).