Unnecessary check.
Use graceful-fs.
Small tweaks to util/semver.