Line 3 of your getApplicationInfo output, an absolute path, is not the same path as line 3 of the Bash script, a path relative to your home directory. You are not likely to be able to write in that location (if it exists at all).
Are you sure the license is the problem?