updated the functions and scripts to use new file paths.

Changed function for checking modification time