Remove fileutils

Series of commits removing dependencies on fileutils. I think I got them all. Fixes #1564