make the run.sh script more generic

so that it can be used in many docker container

run.sh will now try to run a script (path to this script should be given in the
BEFORE_RUN_SCRIPT env variable) before exec the actual command (which should be
given in the EXEC_CMD env variable).