sort elements
Do not use realpath in normabspath, fixes vcstools/wstool#5
Adds more text to error message when treating symlink
Removes the symlink when replacing
print date in generated header