use test command and OR operator for wp-* directory checks