Using os.path, checking for dirs