Revert use of plugin directory functions

This reverts a change in https://github.com/humanmade/Custom-Meta-Boxes/commit/ecd1827db0c1b3c85562de169902940627179513 that broke the use of CMB in theme folder.