Fixed backup/restore issues, uses correct data directory variable now.