Improved file update checking