Fix base_Dir not found error