fixes problem with serving static w/ only basepath as dir arg