Make a NotImplementedError more explicit
Remove a os.system() call in document procesing and normalize upload dir path