Fix paths from main html file if input or output directories are not current working directory