Changed the way to get DIR_BASE