SAMZA-383: fix switch-version button may link to invalid pages
SAMZA-385: fix local-site-test does not overwrite SVN directory.