Fixed #16383

this parenthesis is redundant and white space after 'if' is required. 
like 'if not isinstance ... dir(current):'