compress paths like "test/pdf/../epub" into "test/epub" in FileChooser

This patch fixes Bug #107