avoid re-registering pdf mime type
Only require princely/rails if in a Rails project