A subtle bug here:  will probably fail when run on a remote testing machine/service because it will likely run as a user without a home directory. A more robust approach is probably:

    System.getProperty("user.name")