Small modification

1. Only calculate filesystems started with /dev
2. Use && to detect whether a command executes correctly