Change `hasBaseDir` to conform with Java Bean Spec (#299)