fixed path resolution for lua files