fixed issue with tmp file (path can include filename) and added missing else which made it try to link x2
fixed issue with tmp file (path can include filename) and added missing
else which made it try to link x2

thaim/ansible,thaim/ansible