Fix ls/readdir wrong display when not in top directory