Improve Carton setup

Don't query setup carton path when it is called as function(not command)
Don't raise error

Because carton setup may be used as hook function.