Fix for ~ (lock files).