Update filesystem.cc

Fix seg fault after an invalid command.
Updated Tree to display correctly at any depth.