Repaired terminal.d and migrated to dub