Better mounted check

The previous check would fail to properly detect if things weren't
mounted, especially if the NFS server and the mount point shared
a common name (e.g. /home or something).
add support for ubuntu
fix wrong commend symbol
Merge remote-tracking branch 'origin/add_ubuntu_support'