annotationsDir option can't be set

Test on the type of options is wrong