Take object file as input and handle files with the same name correctly.