fixed up writeManifest and rrt_init so that it doesnt break on extra folders, closes #50