support tildes in paths

Python doesn't handle '~/blah' style paths very well when they're passed in from the commandline. It's frustrating to wait a few hours for a model to train, only for guacamole to crash when it tries to write the model params out (I know about the intermediately saved model params, but still).