You can keep the file with the script `/usr/local/var`. However **be very careful with concurrency**. (I would not do it this way)
To keep file accessible, I would create a new group for the tool.
addgroup deployer
mkdir /usr/local/var/deployer
chgrp deployer /usr/local/var/deployer /usr/local/bin/deploy
chmod g+x /usr/local/bin/deploy