[Tophat][FIX] Tophat crashes when a relative path to output dir is given
Merge branch 'fix_tophat' into develop