Fixed creation of the path to metadata DB.