The $ZSH_NAME value is empty as we're using bash to run this script. Adding a different condition for adding the line that sources gvm.