ZOOKEEPER-2536: When provide path for 'dataDir' with trailing space, it is taking correct path (by trucating space) for snapshot but creating temporary file with some junk folder name for zookeeper_server.pid (Rakesh Kumar Singh via phunt)