Same as the previous comment on line 9. Proper version would be:

this_script_dir="$(dirname "${this_script_filename}")"