Added print of actions to perform
Changed script

 * Added support for dry run parameter -n
 * Added check for avoiding renaming same file
 * Fixed wrong whitespace escaping
 * Added temp dir for fetching xml