Fixing bug where '.' or './' is given for the path in the distribute and start functions when then need to have the absolute path.