Speed up checking if mount works

License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>