Fixed file output for Unix systems