Merge pull request #23 from mimmi20/file-locking

write to a temporary file and rename it later
Merge branch 'master' of https://github.com/browscap/browscap-php into refactoring