[Reviewer: Andy] Fix sense of up_to_date flag

Andy,

Please can you review this, which fixes #26?

Thanks,

Matt