Auto-detect plugin slug and directory; Move settings to top.