Fix file listing in the API. Fix #76