Changing the run_* functions to make them more friendly to being called as library methods. Setting the work directory to a fixed location based on the 'name' of the container