release dir is a global flag so use it