Windows device fixes

Branch name is misleading. These fixes are not strictly just for Hive. They are all related to issues with windows device paths.