Clean up refactoring of prefixes in to prefix file
Fixed bug in publish exclude code