Fixes for insertion in PATH.

- More descriptive filename.

- Include shebang.

- Use configuration directory not currentdir to store app key.