Detect and set if application is "site" or "admin"