fix typo

add missing parenthesis and make subdir optional