retry until a file exists
much better recompile logic
0.5.2