ci-license-scan: Do not use _fg with sh
This is a special argument only useful for programs that need user interaction. The functionality side-steps a lot of sh's functionality which can cause instability in the output of the program
Also fix file opening confusion.
I can't be sure that this fixes the issue. Any local tests I can do to reproduce ?