Use /bin/echo directly for filling in the template
Don't use -n when listing non-installed-prefixes
Make the case where there are no non-installed-files work
V2