Set chmod 777 for tmpFile

Fix the error ```open pandoc**********: permission denied```.