TAR_EXTRA needs to come before short opts and short opts needs a hyphen prefix
Merge pull request #26 from ShaunR/master

TAR_EXTRA doesn't work for long opts
Add environment variable USER_PWD

If the startup-script need the current working directory for the
user extracting the archive OLDPWD will work with most shells.
However, this is not always guaranteed to work.

This patch records the content of PWD at the time the
self-extracting script is run into USER_PWD.  The startup-script
can then more reliably use this environment variable.

This approach have been tested on different versions of HPUX, AIX,
Solaris, QNX Neutrino, Linux, and OS-X.
Merge pull request #27 from hvammen/master

Add environment variable USER_PWD