data: Fix database creation in mysql 5.6.
build: Fixed DIR_ROOT detection.