Generate an APC prefix based on __FILE__

Closes #654