added if check around unattend.sh
Merge pull request #51 from TetraAsh/patch-1

added if check around unattend.sh