Bug: Rename directory not possible on update
### Describe the Bug

I get an error when trying to install a new version of the plugin. It gets to rename a directory but can’t since the directory is full. I know how to fix it, but this is not the first time this has happened 

### To Reproduce

Install v3.1.3 of SwitchBot plugin 
Install v3.7.0 of SwitchBot plugin

### Expected Behavior

The directory should not be renamed, especially not hidden either 

### Relevant Log Output

```shell
npm
 ERR! code ENOTEMPTY
npm ERR! syscall rename
npm ERR!
 path /usr/local/lib/node_modules/@switchbot/homebridge-switchbot
npm ERR! dest /usr/local/lib/node_modules/@switchbot/.homebridge-switchbot-UUyzm0HE
npm ERR! errno -39
npm
ERR! ENOTEMPTY: directory not empty, rename '/usr/local/lib/node_modules/@switchbot/homebridge-switchbot' -> '/usr/local/lib/node_modules/@switchbot/.homebridge-switchbot-UUyzm0HE'
npm ERR!
 A complete log of this run can be found in: /home/pi/.npm/_logs/2024-08-29T18_13_11_428Z-debug-0.log


Operation failed with code 217.

You can download this log file for future reference.

See https://github.com/homebridge/homebridge-config-ui-x/wiki/Troubleshooting for help.
```


### Config for homebridge-switchbot

```shell
This is not needed
```


### Screenshots

_No response_

### Device and Model

Not needed

### Node.js Version

v20.11.1

### NPM Version

vI.D.K

### Homebridge Version

v1.8.4

### Homebridge Switchbot Plugin Version

v3.7.0

### Homebridge Config UI X Plugin Version

v4.41.2

### Operating System

Raspbian