Fix file permissions on ftp and fix production target on windows.