more file io refactoring

Removes more references to static working directory.

@osa1 @radumereuta Please review
"junit-reports" should be a constant defined somewhere else. Just in case you will use it somewhere else and you want to change it in the future.