interrupt starts at different times depending on upload time of program

Get out an oscilloscope to actually see what is going on. And a mono-stable multivibrator (555) will let you adjust the length of the response pulse.