Fixed some bugs in the dockerfiles and the scripts