Release security

@bhearsum I created a nasty merge situation with the last "release security" pull request; but took what you pointed out about the possibility of an api call causing release build directories to be clobbered and fixed it so that it's no longer possible. Thank you so much again for looking at the patch.