Fix for OPENAM-2090, review CR-4179: OPENAM_HOME/.version file is not updated

git-svn-id: https://svn.forgerock.org/openam/trunk@10404 0f4defcf-c51a-4c67-9f44-6fb5eba73c5d
WPA fix for OPENAM-2782

git-svn-id: https://svn.forgerock.org/openam/trunk@10406 0f4defcf-c51a-4c67-9f44-6fb5eba73c5d