Only reset path if in Unix environment
Add value of 'path_met_files' to function call
Fix indentation in script
Correct use of '.Platform' statement
Correct use of '.Platform' statement and make other corrections