Refactor and improve release script (existing pkg version will be released)