Fix uptodate() so stat() gets the right path fed to it