Update zaptmp script to handle symbolic links