Added .sh extension to functions script
Make changes to how paths are handled for windows