backported fixes
added script to New-Release command, ensure token is replaced with directory