Updated build script to return before trying to create an archive if there's no releases directory