fix wrong require path and error message on clearing cache command