o merged from r609976 (MNG-2809: Can't activate a profile by checking for the presence of a file in ${user.home}) o added new test class