bin/magento-crypt.php: read from stdin in a more compatible way
bin/template-tool: added exit 0 to fix a false positive

when the [ -n ... ] check near the end of the file failed, it made the
script erroneously return 1.

Added an exit 0 to avoid that previous non-critical checks don't make the
script to return failure.