fixed bug in docker init: type checking in prepDockerFile function