Checks for a directory has to be done on a fullpath.
Removed the puts, its not nescessary.