Syncronized output folder naming to shellscript

- Foldenames for keys and sharekeys has to be the same that is set in the shell script, because currently the recursive structure is created by the shell script, and the files are written by the php script
- TODO migrate the recursive folder creation from the shell script to avoid problems caused by different folder settings