Currently the directory is changed to the scancode installation dir, leading to surprising behaviors