reimplement finding the mountpoint of a directory

Sys::Filesystem was GPL and we can't use it.