Add support for skipping convert command when not installed imagemagic.

When my colleague checkout the script which I committed before, and build the project. If that guy has not installed imagemagick, he will get a bad build process. So  I add some code to determine whether the `convert` command has been installed or not.