Updated travis test and make sure temp dir has correct permissions.