Use correct path detection, fixes issue with srlua apps in PATH