couple fixes for ghost blogs hosted in subdirectory