Undefined dir_base fix