Added some backwards compatibility to not break builds that use the the _dir options