Fixes a potential problem with experiment dir being specified with ~
Merge pull request #9 from lzamparo/fix_tilde_experiment_dir

Fixes a potential problem with experiment dir being specified with ~