Small modification

Only calculate FS started with /dev
Use && to detect whether a command executes correctly
Merge pull request #4 from johnjohnlin/smallfix

Small modification