Fix seg fault issue when passing invalid syspath

Corrected issue that could cause a seg fault by passing an invalid
syspath when retrieving a device name.
Added device path retrieval

Created function to provide access to the mount location of a connected
device.