Fixed and tested some file completion behavior.