fix app mod and system paths