Improved the script

- Added detection of actual script directly necessary to properly reference template
  file when called via symlink or path
- Fixed numerous bugs
- Added better prompting