There's a few places further down this method which need to be renamed from `$releasesDir` to `$releasesDirectory`