Is there any way to detect whether an alias has been called from a script?