gitignore: exclude *.bak
irclogs.php: fix issue with relative paths

Look for /irclogs in DOCUMENT_ROOT, and fall back to parent dir if not
found.