Changed to basename -zsh for lock file generation