Print() method no longer throws exception if rootdir is not defined.

Before the print() method threw an exception if the root directory was not defined. Not it signals that the root directory is not defined an exits.