Fixed drivepath variable

Fixed drivepath not being set correctly, assigned to a temp var prior to
substring
Fixed incorrect name for drivepath in error message