RF: Replace os operations with pathlib, add metadata indentation
RF: Replace os operations with pathlib, add metadata indentation

poldracklab/niworkflows,oesteban/niworkflows,poldracklab/niworkflows,oesteban/niworkflows,oesteban/niworkflows