Fix security.php for subdirectories.

Issue #12