BUGFIX $gid is undefined if the device does not exist
Merge branch 'setup-storage_tn' of github.com:ThomasNeumann/setup-storage into setup-storage_tn