Setting the path by exec(which umount).

Location of "umount" command is different by operating systems  -- e.g., /bin/umount on Raspbian.