Fix symlink creation.
Determine $APPNAME programmatically.

Writing the name of the app inside itself is redundant. This makes the
app easier to rename in the future if necessary.