Refactoring paths and adding support for windows.