fix wmname command for java applications