Fix require

Fixed require which expects that all the files be on the same directory of the caller script.