Make outputFileName compilation relevant
Fix wrong method call to obtain a File