function getUserHomeDirectory() {
  // Based on:
  // https://stackoverflow.com/questions/9080085/node-js-find-home-directory-in-platform-agnostic-way
  return process.env[process.platform === 'win32' ? 'USERPROFILE' : 'HOME'];
}
Get the user's home directory (Node.js only).