Fixed enhance call issue for external rake tasks