atom: Add prepare() function:

Changing the source (like patching and seding) should be done in the prepare() function (if possible).
In this case it's possible and the changes don't get lost