Filesystem: POSIX-compliant syntax for portability
Updated to use POSIX $() instead of Bourne-shell backticks, and to
use grep ... >/dev/null 2>&1 instead of grep -q. (Note: grep -q
only suppresses stdout anyway. grep -q -s would be required to
suppress both stdout and stderr.)