Fix target dependencies for multiple jobs