Improving the better migration template

Instead of waiting a second, lets check what's on the file system
and proceed from there. Once we get our timestamp, proceed with using
that cached value. This removes the painfully kludgy use of sleep.