More fixes for #1 - app working in a subfolder.