Fixed issues with republishing files when updating version