Clean the check for root folder.
Remove unnecessary brackets.