Refined the Release script further
Added support to directory argument
Fix odd bug with the MacOS build