Allow optional appname for root dir

This change addresses #11.