Fixed the getopts with check-swap-percentage.sh

It seems that it only took the "-w" option with the original setup.
Adding the two ":" to the getopts line allows you now to leverage
both -c and -w or just one of them.
added a check for 0 swap on a machine to drop out
fix error when swap percentage is less than 1
updated mools pr into this PR
Merge pull request #413 from jjasghar/check-swap-percent-fix

Fixed the getopts with check-swap-percentage.sh