fix detection of system wide mount points
add unit tests