changed apache lockfile check