Eliminate dependence on folder name

Resolves #22
On second thought, after reviewing the whole thing, I think this is ok, though I'm not sure the syntax here (calling a function inside square brackets works on older versions of PHP.