webif: fix bug where empty directories were not removed

Also add link to "put.io" in the navbar.