fix stack overflow (+formatting)
fixed return value of fix_pattern
fixed string.gmatch
implemented package.searchpath