Fix color in check command.
Release v0.510.
Prohibit chmod on dirs.