Previous commit fixed problem for existing localrepo.lua but introduced an error for non-existing script.