Bugfix: shell scripts are not my friend