Minor modification so the replacement list doesn't try to replace non-files inside single-quotes should the text contained in single-quotes be that of a directory name.
Example: "<span class='game'>" was becoming "<span class='code/game'>"
All credits go to thvortex of ss13-daedalus branch.
Signed-off-by: Carn <elly1989@rocketmail.com>