Fix invalid paths in NSI script

Also use the TMP_PREFIX variable in the path.