add dirname to locate wp-config function to match WordPress
add dirname to locate wp-config function to match WordPress

rodrigoprimo/wp-cli,trepmal/wp-cli,trepmal/wp-cli,aaemnnosttv/wp-cli,trepmal/wp-cli,aaemnnosttv/wp-cli,rodrigoprimo/wp-cli,aaemnnosttv/wp-cli,rodrigoprimo/wp-cli