This may not work for custom setups. You should make the path to the lock file configurable instead