[CLEANUP] Make more use of variables
[FEATURE] If the destination already exists, operate on a temporary folder
[FEATURE] Add attribute to define a reference / tag to be checked out