Merge pull request #2 from lachie83/feature-add-swap-partition

fix swap file check