Remove mkdir/rm -r errors when running build.py

So it shouldn't really pop up with errors when nothing bad is happening, like trying to remove a directory that doesn't exist or trying to make one that already exists, so I just put in a couple of extra lines to check whether these directories existed, to get rid of the errors.