Call compile() as the callback for mkdir

Sorry @jashkenas, I was too slow (or you were too fast). I have realized that when original `mkdir -p` is used, it should call compile() upon its success only. Feel free to ditch this, if such fix is not necessary.