Update copyright years of frontend scripts
[Fix #198] Don't rely on $HOME

$HOME doesn't work reliably on Windows.  Instead, we use
os.path.expanduser as suggested by @mcandre.