fixed detect_sandbox when no SANDBOX_LOCAL given