Fix Windows support
Use filelock package