clean up for extension api refinements
fixes for cross-platform paths and newlines

special thanks to @monkeez for the help here
Merge branch 'windows-fix'