Again:
freenet_dir="$(readlink -e "${this_script_dir}/../")" # 1 above