Basic support for refaker

This PR enables the `fakeroot` and `directory` options for supporting [refaker](https://github.com/gextech/refaker).