Adding some checks to ensure binaries called via cmd.run are available.  Per #15948.
Merge pull request #15969 from garethgreenaway/15948_2017_7_fixes_to_parted

Fixes to parted.py module