Improve compatibility and fix minor issues

This makes the FC hack slightly more flexible (because Idris sometimes returns nonsense, apparently), and it makes finding packages not fail when run in the bare home directory.