Check for ZSH_VERSION instead of compctl which is unused.
Optimize the awk code for completion.