Fix working directory with dirty hack