Use dirutils from platform/

Change-Id: I271c8dde19ce76d61b13f55f302d8d2e753a2446
Reviewed-on: http://review.couchbase.org/31418
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>