Renamed FixConfigPermissions function to FixFilePermissions which takes param of filename