Refactor

Improved GetDriveType by using an enum instead of mystical magical int
values. More readable now.