Called realpath from c rather than a python script (!)

Test Plan: Ran ~500 files through a command which runs realpath on each of them. It ran correctly, and its runtime fell from 12s to 4s.  The amount attributable to realpath is now negligable.

Reviewers: pad

Reviewed By: pad

Differential Revision: https://phabricator.fb.com/D772921