use tee to redirect stream to file
Merge pull request #6 from asarturas/hotfix/no-permissions-to-create-selfsigned-magento-key-file

use tee to redirect stream to file when creating selfsigned magento keys