Implement synchronous api

Adds a `sync` function to exports to return a resolved path synchronously.
Merge pull request #48 from wilsonjackson/sync

Implement synchronous api