Fixed mode on some files
Fixed how system base path is returned on Windows
 * Now expanding the path so it will have unix separator. This fix
   the test on Windows.