Correct .o targets in dep rule files

Not super nice code, but it works.